//
//  Person.h
//  05-Homework
//
//  Created by Snow on 16/7/8.
//  Copyright © 2016年 Snow. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface Person : NSObject
@property (nonatomic, retain) NSString *name;
@property (nonatomic, assign) NSInteger age;
@property (nonatomic, retain) NSString *gender;
- (instancetype)initWithName:(NSString *)name age:(NSInteger)age gender:(NSString *)gender;
+ (instancetype)personWithName:(NSString *)name age:(NSInteger)age gender:(NSString *)gender;
- (NSComparisonResult)compareByName:(Person *)person;
- (NSComparisonResult)compareByGender:(Person *)person;
- (NSComparisonResult)compareByAge:(Person *)person;
@end
